<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="axios.js"></script>
    <script>

        //两种get请求的方式使用 axios的方式 
        /*   axios.get('http://localhost:8888')
              .then(function (response) {
                  console.log(response);
              })
              .catch(function (error) {
                  console.log(error);
              });
  
   */
        /* axios.get('http://localhost:8888')
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            }); */

        /* // texe2
        axios.get('http://localhost:8888/test/second')
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                console.log(error);
            }); */



        axios.get('http://localhost:8888/test/third')

    </script>
</body>

</html>